#include <iostream>
#include <cmath>
using namespace std;

double futureInvestmentValue(double investmentAmount, double monthlyInterestRate, int numOfYears)
{
  return investmentAmount * pow(1 + monthlyInterestRate, numOfYears * 12);
}

int main()
{
  cout << "Enter yearly interest rate, for example 8.25: ";
  double annualInterestRate;
  cin >> annualInterestRate;

  cout << "Enter loan amount, for example 120000.95: ";
  double loanAmount;
  cin >> loanAmount;

  cout << "Years\tFuture Value" << endl;

  for (int i = 1; i <= 30; i++)
  {
    double futureValue = futureInvestmentValue(loanAmount, annualInterestRate / 1200, i);
    cout << "" << i << "\t" << (int)(futureValue * 100) / 100.0 << endl;
  }

  return 0;
}
